/*
* File: configFile.h
* Version: 1.0
* Last modified on Mon Mars 10 2014 by group 5
* Members:
* Johan Forsblom, Johanna Carlsson, Dragana Todorovic, 
* Hampus Herbertsson, Robin Henriksson
* -----------------------------------------------------
* This interface provides several functions for loading the config file.
*/

#ifndef _configFile_H 
#define _configFile_H

/* Struct for configFile data */
typedef struct {
	char port[10];
	char telNetPort[10];
	char homePageFolder[255];
	char logFileFolder[255];
	char telNetPassWord[30];
}configFileT;


/* Function: loadConfigFile
* usage: loadConfigFile()
* ----------------------------------------------------------------
* This function loads the configFile from disk. If it could not load the file
* default values are set. 
*/
void loadConfigFile(void);

/* Function: getServerPort
* usage: getServerPort(serverPort)
* ----------------------------------------------------------------
* This function gets the serverport. 
*/
void getServerPort(char *serverPort);

/* Function: getTelNetPort
* usage: getTelNetPort(telnetPort)
* ----------------------------------------------------------------
* This function gets the telnetPort. 
*/
void getTelNetPort(char *telNetPort);

/* Function: printConfigFile
* usage: printConfigFile()
* ----------------------------------------------------------------
* This function prints the configfile data to the server window.
*/
void printConfigFile(void);

/* Function: getHomePageFolder
* usage: getHomePageFolder(homePageFolder)
* ----------------------------------------------------------------
* This function gets the homePageFolder.
*/
void getHomePageFolder(char *homePageFolder);

/* Function: getLogFileFolder
* usage: getLogFileFolder(logFilefFolder)
* ----------------------------------------------------------------
* This function gets the logFileFolder.
*/
void getLogFileFolder(char *logFileFolder);

#endif